ACFWF\Models\Store_Credits\Calculate S

Total Complexity 50
Dependencies 12
Dependents 1
Total lines 598
Lines of code 253
Logical lines of code 125
Comment lines 267
Methods 19
Properties 4

Methods 19

Method Rating Maintainability Complexity Lines of code
calculate_credits_status_and_sources()
A
47 8 36
_get_entries_sum()
A
48 7 33
maybe_check_on_all_users_balance_expiry()
S
49 6 32
_get_all_entries()
S
52 4 25
calculate_store_credits_report_period_statistics()
S
54 4 20
get_customer_balance()
S
58 4 15
_calculate_customer_balance()
S
57 2 19
expire_user_credit_balance()
S
60 2 13
get_last_active()
S
63 2 9
get_instance()
S
70 2 6
__construct()
S
70 1 6
get_total_store_credits_discount_for_order()
S
67 1 9
deactivate()
S
82 1 3
get_decimal_precision()
S
79 1 3
validate_user_last_active()
S
67 1 7
delete_store_credits_cached_data()
S
75 1 4
calculate_store_credits_period_statistics()
S
71 1 5
calculate_unclaimed_store_credits()
S
71 1 5
run()
S
79 1 3